<template>
<div class="vue-box sbot" >
  <!-- ------- 内容部分 ------- -->
  <div class="c-panel">
    <el-form v-if="m" :inline="true">
      <sa-info name="序号" br>{{ m.id }}</sa-info>
      <sa-info type="text" name="模板名称" :value="m.templateName" br></sa-info>
      <sa-info type="text" name="模板内容" :value="m.templateText" br></sa-info>
      <sa-info type="text" name="消息用户" :value="m.userName" br></sa-info>
      <sa-info type="text" name="用户手机" :value="m.userPhone" br></sa-info>
      <sa-info type="enum" name="发送状态" :jv="dims.MSG_SEND_STATUS" :value="m.status" br />
      <sa-info type="datetime" name="创建时间" :value="m.createTime" br></sa-info>
      <sa-info name="描述" br>{{ m.note }}</sa-info>
    </el-form>
  </div>
</div>
</template>

<script>
export default {
  name: 'sms-user-info',
  props: {
    param: Object
  },
  data() {
    return {
      id: this.param.id,
      dims: sa.$sys.getCurd(),
      m: this.param,
      // 模板
      templates: [],
      // 用户
      users: []
    }
  },
  created: function () {
    this.templates = this.param.templates
    this.users = this.param.users
  },
}
</script>

<style scoped>

</style>
